package org.ax.pojo.device;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.ax.pojo.employ.Employee;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
//设备表
@Data
@TableName("device")
public class Device  implements Serializable {

	private static final long serialVersionUID =  8944412274279631031L;
	@TableId
	private String deviceId;

	private String deviceName;

	private String deviceTypeId;
	@TableField(exist = false)
	private DeviceType deviceType;
	private String deviceStatusId;

	private String deviceStatus;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
	private java.time.LocalDateTime devicePurchaseDate;

	private double devicePurchasePrice;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
	private java.time.LocalDateTime deviceManufactureDate;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
	private java.time.LocalDateTime deviceServiceLife;

	private String deviceKeeperId;
	@TableField(exist = false)
	private Employee employee;

	private String note;


}
